<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Main Page</title>
</head>
<body>
<h1>Welcome, <%= request.getSession().getAttribute("username") %>!</h1>
<form action="logout" method="post">
    <button type="submit">Logout</button>
</form>
</body>
</html>